import request from '@/utils/request'

// 查询物料档案列表
export function listWlMess(query) {
  return request({
    url: '/jbxx/wlMess/list',
    method: 'get',
    params: query
  })
}

// 查询物料档案详细
export function getWlMess(wlCode) {
  return request({
    url: '/jbxx/wlMess/' + wlCode,
    method: 'get'
  })
}

// 新增物料档案
export function addWlMess(data) {
  return request({
    url: '/jbxx/wlMess',
    method: 'post',
    data: data
  })
}

// 修改物料档案
export function updateWlMess(data) {
  return request({
    url: '/jbxx/wlMess',
    method: 'put',
    data: data
  })
}

// 删除物料档案
export function delWlMess(wlCode) {
  return request({
    url: '/jbxx/wlMess/' + wlCode,
    method: 'delete'
  })
}
